<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<title>简约抽奖 - Bone</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<%@ include file="/common/css.jsp"%>
<%-- <link href="${ctx }/resource/price/css/family.css" rel="stylesheet" type="text/css"> --%>
<link href="${ctx }/resource/css/ini.css" rel="stylesheet"
type="text/css">
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body>
	<!-- BEGIN HEADER -->
	<%@ include file="/common/header.jsp"%>
	<!-- END HEADER -->
	
	<div class="tab-pane row-fluid profile-account" id="tab_1_3"
		style="margin-top: 40px">
		<div class="row-fluid" style="margin-top:20px">
        <div class="span2"></div>
        <div class="span8">
            <ul class="breadcrumb">
					<li><i class="icon-home"></i> <a href="${ctx}/index.do">首页</a>
						<i class="icon-angle-right"></i>
					</li>
					<li><i></i> <a href="${ctx}/lottery/index.do">抽奖系统首页</a>
						<i class="icon-angle-right"></i>
					</li>
					<li><a href="#">简约式抽奖</a></li>
				</ul>
            
        </div>
        
	<!--content start-->
	<div class="tab-pane row-fluid profile-account" id="tab_1_3"
		style="margin-top: 40px">
		<div class="row-fluid" style="min-height:720px;height:600px;margin-top: 20px">
			<div class="span2"></div> 
			<div class="span8">
				<!-- BEGIN SAMPLE FORM PORTLET-->
				<div class="portlet box blue">
					<div class="portlet-title">
	                    <div class="caption">
	                    	${lotteryEvent.title }
	                    	
							<!-- <i class="icon-reorder"></i>抽奖  -->
						</div>
	                </div>
					<div class="portlet-body form">
				
							<div id=" " >
								<fieldset class=" ">
									<div id="Main">
										<h2 class="title">加载奖项...</h2>
										<div class="input">列表加载...</div>
									</div>
									<div id="input">
										<input id="start" name="start" type="button" class="btn green" value="开始" /> <input
											id="end" name="end" type="button" class="btn red" value="停止" /> <input
											id="login" name="login" type="button" class="btn yellow" value="下一组" />
									</div>
								</fieldset>
							</div>
							<hr>
							<div id="out" >
								<fieldset style="text-align:center;">
									<legend  align="center" style="border:none;" > 中奖结果 </legend>
									<ul id="tableOUT">
										<li style="display: none" />
									</ul>
									<input type="button" id="saveBtn" class="btn green" style="position:relative;top:-140px" value="保存"/>
								</fieldset>
							</div>
						
						<div class="End" align="center">
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	</div>
	</div>
	<!-- END  CONTENT-->

	<!-- BEGIN FOOTER1 -->
	<%@ include file="/common/footer.jsp"%>
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS -->
	<%@ include file="/common/js.jsp"%>
	<script type="text/javascript"
		src="${ctx }/resource/price/js/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="${ctx }/resource/js/co.js"></script>
	<script type="text/javascript" src="${ctx }/resource/js/lottery-single.js"></script>
	<script type="text/JavaScript">
		var lid = '${lotteryEvent.id}';
		
		
  //====  参数配置区域 ↓ ================================================================
    var m = [1,100];//按号码范围抽 m_name必须为[];
	//var m_name =["王超旭","大乔","小乔","张辽","孙权","关羽","曹操","诸葛亮","周瑜","司马懿","杨志","鲁智深","孙尚香"];//人员名单 本数组有值“号码范围”自动失效
	var m_name =${lotteryCandidate};
	/**
	奖项配置及样式关系设置
	  name:  本组奖项名称
	  num:   本组要抽出的数量
	  clas：对应的样式 ini.css 内（默认 class="ipt"）
	*/
 	/**window.ini =[
	  {name:"三等奖",num:	3,clas:"ipt5"},
 	  {name:"二等奖",num:2,clas:"ipt2"},
 	  {name:"一等奖",num:1,clas:"ipt1"},
 	  {name:"特等奖",num:1,clas:"ipt1"}
   ];*/
	window.ini =  ${lotteryItem};
	
	/** 辅助参数设置 */
	window.rep = 0; //是否允许号码重复出现
	window.obo = 0; //一次抽一（组0/个1）
	window.arr = [0,1,2]; //排除号码或姓名序号 例子 [0,1,2,3,4]
	
</script>

	<!-- END JAVASCRIPTS -->
	
	<script type="text/javascript" src="">
	</script>
</body>
<!-- END BODY -->
</html>